<div class="fixednavcontainer">
  <div class="contentContainerheader">
    <nav class="navbar navbar-expand-lg navbar-light">
      <a class="navbar-brand nav-icon" href="#">开放平台</a>
      <div class="collapse navbar-collapse" id="navbarSupportedContent">

        <ul class="navbar-nav mr-auto">
          {{#foreach navigation}}
          {{navigation}}
          {{#if isShow}}
          <li class="nav-item">
            <a class="nav-link {{#if current}}nav-current{{/if}}" href="{{#if path}}{{path}}{{else}}{{mixed.url}}{{/if}}" title="{{name}}">{{name}}</a>
          </li>
          {{/if}}
          {{/foreach}}

        </ul>

        <button  class="btnlg">
          <a href="https://saobei.lcsw.cn/lcsw/" style="color: #fff;text-decoration:none">登录</a>
        </button>
      </div>
      <span class="more-icon d-block d-lg-none" data-toggle="collapse" data-target="#mobilenav" aria-expanded="true"
        aria-controls="mobilenav"></span>
    </nav>
    <!-- 移动端导航 -->
    <div class="mobilenavcontainer collapse" id="mobilenav">
      <div class="mobilenav row" style="margin: 0;">
        <div class="col-4" data-toggle="collapse" data-target="#mobilenav" aria-expanded="true"
          aria-controls="mobilenav">
        </div>
        <div class="col-8 mobilemain">
          <div class="msearch">
            <form class="navbar-form navbar-right" action="/search" name="searchForm" autocomplete="on" role="search">
              <div class="form-group">
                <div class="input-group">
                  <input name="words" type="search" method="get" class="form-control" placeholder="搜索全站...">
                  <span class="input-group-btn">
                    <button class="btn btn-default" type="submit">搜索</button>
                  </span>
                </div>
              </div>
            </form>
          </div>
          <div class="accordion">
            <ul class="navbar-nav mr-auto">
              {{#foreach navigation}}
              {{navigation}}
              {{#if isShow}}
              <li class="nav-item">
                <a class="nav-link" href="{{#if path}}{{path}}{{else}}{{mixed.url}}{{/if}}"
                  title="{{name}}">{{name}}</a>
              </li>
              {{/if}}
              {{/foreach}}
              {{#foreach navigation}}
              {{#if current}}
              {{#if nodes}}
              <div>
                {{#foreach nodes}}
                {{#if contents}}
                <div>
                  <a href="#" title="{{name}}">{{name}}</a>
                </div>
                {{else}}
                <div>
                  <a href="{{#if path}}{{path}}{{else}}{{mixed.url}}{{/if}}" title="{{name}}">{{name}}</a>
                </div>
                {{/if}}
                <div id="collapseOne" class="collapse show" aria-labelledby="headingOne"
                  data-parent="#accordionExample">
                  <ul class="">
                    {{#foreach contents limit="5"}}
                    <li><a href="{{href}}">{{title}}</a></li>
                    {{/foreach}}
                  </ul>
                </div>
                {{/foreach}}
              </div>
              {{/if}}
              {{/if}}
              {{/foreach}}
            </ul>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>